/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import domain.pojo.Apartment;
import java.sql.Date;
import java.util.List;

/**
 *
 * @author lion
 */
public class Demo {

    public static void main(String[] args) {
        ApartmentDaoImpl apartmentDaoImpl = new ApartmentDaoImpl();
        Date date = new Date(System.currentTimeMillis());
        System.out.println("aaaaaaa" + apartmentDaoImpl.getApartments().size());
        List<Apartment> apartments = apartmentDaoImpl.getApartments();
        for (Apartment apartment : apartments) {
            System.out.println("hello " + apartment.getArea());
        }
    }
//        for(Apartment apartment : apartments)
//            System.out.println("hello " + apartment.getArea());
//        }
//        Apartment apartment =  new Apartment(5, 101, 1, "huong dong nam", 5, "Lang sinh vien", "duongpb",date);
//        System.out.println(apartmentDaoImpl.insertApartment(apartment));
}
